package com.wchat;

import com.wchat.bean.model.enums.ChatTypeEm;
import com.wchat.bean.model.enums.MsgContentTypeEm;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author : willian fu
 * @date : 2021/9/2
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ChatMsgsVo {

    private String msgId;
    /**
     * 发送者id
     */
    private Integer sender;
    /**
     * 接收者id
     */
    private Integer target;
    /**
     * 消息类型  SINGLE / GROUP
     */
    private ChatTypeEm chatType;
    /**
     * 消息类型
     */
    private MsgContentTypeEm msgType;
    /**
     * 消息内容
     */
    private String content;

    /**
     * 是否以读
     */
    private Boolean readed;
    /**
     * 已成功发送
     */
    private Boolean isSend;
    /**
     * 创建事件
     */
    private Date created;
}
